package com.strange.mdl.module.mdl.controller.app.test;


import com.strange.mdl.framework.common.pojo.CommonResult;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.tags.Tag;
import jakarta.annotation.security.PermitAll;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import static com.strange.mdl.framework.common.pojo.CommonResult.success;

@Tag(name = "用户 App - Test")
@RestController
@RequestMapping("/mdl/test")
@Validated
public class AppMdlTestController {

    @GetMapping("/get/str")
    @Operation(summary = "获取 App test Str 信息")
    @PermitAll
    public String getStr() {
        return "ok";
    }

    @GetMapping("/get/data")
    @Operation(summary = "获取 App test data 信息")
    public CommonResult<String> getData() {
        return success("ok");
    }
}
